
<?php
$filename ="Profile_photos/".$_GET['prefijo']."profile_".date('Ymd').'.jpg';
$result = file_put_contents( $filename, file_get_contents('php://input') );
if (!$result) {
	print "ERROR: Failed to write data to $filename, check permissions\n";
	exit();
}
echo "webcam/".$filename;
?>

